﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;

namespace OpenESSOConfigurator.BusinessLayer.Atoms
{
    [Serializable]
    public class WinForm : Form
    {
        private List<WindowTitle> _windowTitles;
        private bool _credFields;
        private bool _sendKeys;
        private WinFormOptions _winFormOptions;
        private BindingList<WinField> _winFields;

        public WinForm()
        { }

        public bool CredFields
        {
            get { return _credFields; }
            set { _credFields = value; }
        }

        public bool SendKeys
        {
            get { return _sendKeys; }
            set { _sendKeys = value; }
        }

        [XmlArray("WindowTitles")]
        public List<WindowTitle> WindowTitles
        {
            get { return _windowTitles; }
            set { _windowTitles = value; }
        }

        public WinFormOptions WinFormOptions
        {
            get { return _winFormOptions; }
            set { _winFormOptions = value; }
        }
        [XmlArray("WinFields")]
        public BindingList<WinField> WinFields
        {
            get { return _winFields; }
            set { _winFields = value; }
        }

    }
}
